package com.itheima.shotplane.listener;

import com.itheima.shotplane.entity.Bullet;
import com.itheima.shotplane.entity.Car;

public class AddBulletListener extends AddEntityListener<Bullet>{

	public AddBulletListener(Bullet t) {
		super(t);
	}

	@Override
	protected void onLayoutFinish() {
		Bullet bullet = t;
		//初始化子弹的位置
    	bullet.setTranslationX(1280);
 		bullet.setTranslationY(0);
		bullet.shot(1500,8000);
	}

}
